<template>
	<view class="orderInfo">
		<view class="title">
			订单信息
		</view>
		<view class="item">
			<text>订单编号：</text>
			<view class="right">
				<text>{{orderCode}}</text>
				<view class="copy-btn">
					复制
				</view>
			</view>
		</view>
		<view class="item">
			<text>创建时间：</text>
			<view class="right">
				<text space="emsp">{{foundTime}}</text>
			</view>
		</view>
		<view class="item">
			<text>付款时间：</text>
			<view class="right">
				<text space="emsp">{{payTime}}</text>
			</view>
		</view>
		<view class="item" v-if="is_delivery">
			<text>发货时间：</text>
			<view class="right">
				<text space="emsp">{{deliveryTime}}</text>
			</view>
		</view>
		<view class="item">
			<text>下单区域：</text>
			<view class="right">
				<text space="emsp">{{orderAddress}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data() {
			return {
				
			}
		},
		name:'orderInfo',
		props:{
			orderCode:{
				type:String,
				default:''
			},
			foundTime:{
				type:String,
				default:''
			},
			payTime:{
				type:String,
				default:''
			},
			deliveryTime:{
				type:String,
				default:''
			},
			orderAddress:{
				type:String,
				default:''
			},
			is_delivery:{
				type:Boolean,
				default:true
			}
		}
	}
</script>

<style lang="scss" scoped>
	.orderInfo{
		width: 690rpx;
		background: #ffffff;
		border-radius: 20rpx;
		margin: 30rpx auto;
		padding: 30rpx;
		.title{
			font-size: 28rpx;
			font-weight: 700;
			color: #111111;
		}
		.item{
			display: flex;
			align-items: center;
			margin-top: 30rpx;
			>text{
				font-size: 24rpx;
				font-weight: 500;
				color: #666666;
				margin-right: 10rpx;
			}
			.right{
				display: flex;
				align-items: center;
				text{
					font-size: 24rpx;
					font-weight: 700;
					color: #333333;
				}
				.copy-btn{
					background: #eeeeee;
					border-radius: 15rpx;
					padding: 6rpx 11rpx;
					font-size: 20rpx;
					font-weight: 400;
					color: #333333;
				}
				
			}
		}
	}
</style>
